﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using exMath.Common;
using exMath.Calculus;

namespace MathDemo
{
    class Program
    {

        public static double sqr(double x)
        {
            return x * x;
        }

        static void Main(string[] args)
        {
            double result = sqr(2);
            
            double[] InputValues = { 1.0, 2.0, 3.0, 4.0, 5.0 };
            double[] Results = Functions.ExecuteFunction(0.0, 5.0, 1.0, sqr);

            //using anonymous delegates
            double sum = BasicOperations.Sum(1.0, 5.0, 1.0, delegate(double x){
                return 0.0;
            });

        }
    }
}
